//平台授权，微信H5小游戏，小程序充值
"use strict"
const mvc = require("cosjs.mvc");
const dbase = require("../dbase");
const locks = require("./locks");


class token extends dbase.branch.token {
    constructor(branch){
        super(branch);
        this.branch = branch;
    }

    lock(id){
        let locksMod = locks(this.branch,'token',5);
        return locksMod.start(id);
    }

}

module.exports = function(branch){
    return new token(branch);
}